package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteServiceUrlAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteServiceUrlUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteServiceUrlAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/routeServiceUrl")
public interface IRouteServiceUrlServiceRemote {

    @GetMapping(value = "detail/{id}")
    ResponseData<RouteServiceUrlAResp> detail(Integer id);

    @PostMapping(value = "update")
    ResponseData update(RequestData<RouteServiceUrlUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<RouteServiceUrlAResp> add(RequestData<RouteServiceUrlAddAReq> requestData);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(Integer id);

}
